﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Stock.aspx.cs" Inherits="stock.GuPiao.Stock" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/stock.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="bodyer_main">
        <div class="main_content">
            <div class="left">
                <ul class="uls">
                    <li><a href="user.aspx">用户中心</a></li>
                    <li><a href="stock.aspx">股票中心</a></li>
                    <li><a href="weather.aspx">天气中心</a></li>
                </ul>
            </div>
            <div class="right">
                <asp:GridView ID="GVproductclass" runat="server" DataKeyNames="Id" AutoGenerateColumns="False"
                    OnRowDataBound="GVproductclass_RowDataBound" OnRowDeleting="GVproductclass_RowDeleting"
                    OnRowCancelingEdit="GVCatagory_RowCancelingEdit" EmptyDataText="没有相关记录" Width="692px"
                    EnableModelValidation="True" OnRowEditing="GVCatagory_RowEditing" OnRowUpdating="GVCatagory_RowUpdating">
                    <AlternatingRowStyle BackColor="#CCFFCC" />
                    <Columns>
                        <asp:TemplateField HeaderStyle-Height="20px" ItemStyle-Height="28px" ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                股票名称</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_Name" runat="server" Text='<%#Eval("code")%>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:Label ID="lb_Name" runat="server" Text='<%#Eval("code")%>'></asp:Label>
                            </EditItemTemplate>
                            <HeaderStyle Height="20px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Height="28px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                股票代码</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_code" runat="server" Text='<%#Eval("code") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                             <asp:Label ID="lb_code" runat="server" Text='<%#Eval("code") %>'></asp:Label>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                现价</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_XianJia" runat="server" Text='<%#Eval("code") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                             <asp:Label ID="lb_XianJia" runat="server" Text='<%#Eval("code") %>'></asp:Label>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                上破价</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_UpAlertPrice" runat="server" Text='<%#Eval("UpAlertPrice")+"￥" %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="tb_UpAlertPrice" runat="server" Text='<%#Eval("UpAlertPrice") %>' CssClass="input_100"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                上破幅度</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_UpAlertMargin" runat="server" Text='<%#Eval("UpAlertMargin") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="tb_UpAlertMargin" runat="server" Text='<%#Eval("UpAlertMargin") %>' CssClass="input_100"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                上破增量</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_UpAuto" runat="server" Text='<%#Eval("UpAuto")+"￥"  %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="tb_UpAuto" runat="server" Text='<%#Eval("UpAuto")  %>' CssClass="input_100"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                下破价</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_DownAlertPrice" runat="server" Text='<%#Eval("DownAlertPrice")+"￥"  %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="tb_DownAlertPrice" runat="server" Text='<%#Eval("DownAlertPrice")  %>' CssClass="input_100"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                下破幅度</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_DownAlertMargin" runat="server" Text='<%#Eval("DownAlertMargin") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="tb_DownAlertMargin" runat="server" Text='<%#Eval("DownAlertMargin") %>' CssClass="input_100"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                下破增量</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_DownAuto" runat="server" Text='<%#Eval("DownAuto")+"￥"  %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="tb_DownAuto" runat="server" Text='<%#Eval("DownAuto")  %>' CssClass="input_100"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                创建时间</HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lb_createtime" runat="server" Text='<%#Eval("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="管理" ShowHeader="False">
                            <EditItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                    Text="更新"></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                    Text="取消"></asp:LinkButton>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除"></asp:LinkButton>
                                <asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                    Text="编辑"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle ForeColor="Blue" />
                </asp:GridView>
                <div>
                    <asp:Button ID="btAdd" runat="server" Text="添加一条" class="button_yellow_93" OnClick="btAdd_Click" /></div>
            </div>
        </div>
    </div>
</asp:Content>
